package com.retail.lottery.colalottery.vo.request;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@NoArgsConstructor
@Data
public class OrderNoticeRequest {

    private Integer create_time;
    private Integer update_time;
    private String order_id;
    private Integer status;
    private String oneid;
    private String third_appid;
    private String mobile_secret;
    private String channel;
    private String campaign_code;
    private OrderDetailBean order_detail;

    @NoArgsConstructor
    @Data
    public static class OrderDetailBean{

        private PriceInfoBean price_info;
        private List<ProductInfosBean> product_infos;

        @NoArgsConstructor
        @Data
        public static class PriceInfoBean {
            //sku实付总价
            private int product_price;
            //用户实付金额
            private int order_price;
            //商家优惠金额
            private int discounted_price;
        }

        @NoArgsConstructor
        @Data
        public static class ProductInfosBean {
            //商品spuId
            private String product_id;
            //商品skuId
            private String sku_id;
            //商品sku数量
            private int sku_cnt;
            //商品单价
            private int sale_price;
            //商品标题
            private String title;
            //是否有优惠
            private Boolean is_discounted;
            //商家优惠金额
            private int merchant_discounted_price;
            //实付价
            private int real_price;
        }
    }
}
